package com.yanyilu.basing.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sxx
 * @since 2020-10-26
 */
@Data
@Accessors(chain = true)
@TableName("check_in_record")
public class CheckInRecord extends Model<CheckInRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "check_in_record_id", type = IdType.AUTO)
    private Integer checkInRecordId;

    /**
     * 日期
     */
    @TableField("check_in_date")
    private Integer checkInDate;

    /**
     * 里程
     */
    private Integer mileage;

    /**
     * 用时
     */
    @TableField("time_spent")
    private Integer timeSpent;

    /**
     * 审核状态
     */
    @TableField("review_state")
    private Integer reviewState;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 上传图片
     */
    @TableField("check_in_pic")
    private String checkInPic;

    /**
     * 评语
     * @return
     */
    private String comment;
    /**
     * 是否为首次审核(0:是/1:否)
     */
    @TableField("is_state")
    private Integer isState = 0;

    @Override
    protected Serializable pkVal() {
        return this.checkInRecordId;
    }

}
